
import axios from "axios";
import config from "../config/config";
const URL_PRE = config.getURL_API() + "/pdaservices/";

// const URL_TOKENPRE = config.getURL_API() + "/Token";
// var myInterceptor;
const userservice = {
    login(userCode, userPwd) {
        return new Promise((resolve, reject) => {
            axios.get(URL_PRE + "services/" + "user", {
                    in0: userCode,
                    in1: userPwd
                }).then(data=>{
                    resolve(data)
                },error=>{
                    reject(error)
                })
          
        });
    },
}
export default userservice